Public Member Functions | |
| getID () | |
| setFileManager ($fileManager) | |
| getFileManager () | |
| setCreateTime ($createTime) | |
| setDescription ($description) | |
| getDescription () | |
| setFileID ($fileID) | |
| setCourseID ($courseID) | |
| getCourseID () | |
| setUserID ($userID) | |
| setLink ($link) | |
| setVisibleType ($visibleType) | |
| setName ($name) | |
| getName () | |
| getLink () | |
Static Public Member Functions | |
| static | createLink ($oldOnes=true, $vars= '', $link= '') |
Protected Member Functions | |
| getRessourceVisibilityHTML () | |
Protected Attributes | |
| $fileID | |
| $courseID | |
| $userID | |
| $link | |
| $name | |
| $visibleType | |
| $createTime | |
| $description | |
| $fileManager = null | |
Definition at line 31 of file class.resource.inc.php.
| static Resource::createLink | ( | $ | oldOnes = true, |
|
| $ | vars = '', |
|||
| $ | link = '' | |||
| ) | [static] |
Erstellt einen Link mit GET Variablen
| bool | [$oldOnes] Gibt an ob bisher existierende GET Variablen mit in den Link eingebaut werden. | |
| array | [$vars] Ein Array (Aufbau wie $_GET) mit den Variabeln und WErten die in den Link eingebaut werden | |
| string | [$link] Falls nicht PHP_SELF das Ziel ist muss hier der Dateiname angegeben werden. |
Definition at line 163 of file class.resource.inc.php.
References $link.
Referenced by Folder::getFolderHTMLOption().
00163 { 00164 if ($link == "") $link = PATH_TO_ROOT.SCRIPT_NAME; 00165 if (!is_array($vars)) $vars = $_GET; 00166 elseif (count($_GET) > 0 && $oldOnes) $vars = array_merge($_GET, $vars); 00167 foreach($vars as $getVarName => $getVarValue) { 00168 if (trim($getVarValue) != "" && isset($getVarValue)) $getVars[] = urlencode($getVarName) ."=".urlencode($getVarValue); 00169 } 00170 return $link."?".implode($getVars, "&"); 00171 }
| Resource::getCourseID | ( | ) |
Getter for course id.
Definition at line 90 of file class.resource.inc.php.
| Resource::getDescription | ( | ) |
Getter for description
Definition at line 73 of file class.resource.inc.php.
Referenced by ZipVisitor::addResourceDescription().
| Resource::getFileManager | ( | ) |
Definition at line 51 of file class.resource.inc.php.
| Resource::getID | ( | ) |
Definition at line 43 of file class.resource.inc.php.
Referenced by ZipProvider::logFolderDownload().
| Resource::getLink | ( | ) |
Definition at line 114 of file class.resource.inc.php.
| Resource::getName | ( | ) |
Definition at line 110 of file class.resource.inc.php.
Referenced by ZipVisitor::addResourceDescription(), ZipVisitor::visitFile(), ZipVisitor::visitFolder(), and ZipVisitor::visitLink().
| Resource::getRessourceVisibilityHTML | ( | ) | [protected] |
Definition at line 118 of file class.resource.inc.php.
Referenced by Folder::getFolderHTMLOption().
00118 { 00119 $visibleSelect = "<div class='res_file-extra'>"."Sichtbarkeit ändern: <br/>"; 00120 $activeFolder = $this->fileManager->getActiveFolder(); 00121 $action = $this->fileManager->getAction(); 00122 $actionID = $this->fileManager->getActionID(); 00123 if (isset($_GET['mode'])) { 00124 $mode = $_GET['mode']; 00125 $mode1 = "<a href='".$this->createLink(0, array('activeFolder' => $activeFolder, "action" => "setVisibilityDocentsOnly", 'actionID' => $actionID, 'mode' => $mode)) ."'>Dozenten</a> "; 00126 $mode2 = "<a href='".$this->createLink(0, array('activeFolder' => $activeFolder, "action" => "setVisibilityNoStudents", 'actionID' => $actionID, 'mode' => $mode)) ."'>Dozenten und Tutoren</a> "; 00127 $mode3 = "<a href='".$this->createLink(0, array('activeFolder' => $activeFolder, "action" => "setVisibilityAll", 'actionID' => $actionID, 'mode' => $mode)) ."'>Alle</a> "; 00128 } else { 00129 $mode = 1; 00130 $mode1 = "<a href='".$this->createLink(0, array('activeFolder' => $activeFolder, "action" => "setVisibilityDocentsOnly", 'actionID' => $actionID, 'mode' => $mode)) ."'>Dozenten</a> "; 00131 $mode2 = "<a href='".$this->createLink(0, array('activeFolder' => $activeFolder, "action" => "setVisibilityNoStudents", 'actionID' => $actionID, 'mode' => $mode)) ."'>Dozenten und Tutoren</a> "; 00132 $mode3 = "<a href='".$this->createLink(0, array('activeFolder' => $activeFolder, "action" => "setVisibilityAll", 'actionID' => $actionID, 'mode' => $mode)) ."'>Alle</a> "; 00133 } 00134 if ($mode == 1) { 00135 switch ($this->visibleType) { 00136 case 3: //nur für Dozenten 00137 $visibleSelect.= "<b>Dozenten</b> ".$mode2.$mode3; 00138 break; 00139 00140 case 2: // Dozenten und Tutoren 00141 $visibleSelect.= $mode1."<b>Dozenten und Tutoren</b> ".$mode3; 00142 break; 00143 00144 case 1: // Alle 00145 $visibleSelect.= $mode1.$mode2."<b>Alle</b> "; 00146 break; 00147 } 00148 } else $visibleSelect.= $mode1.$mode2.$mode3; 00149 $visibleSelect.= "<a href='".$this->createLink(0, array("activeFolder" => $activeFolder)) ."'>Abbrechen</a> ".Utilities::helpCode(700) ."</div>"; 00150 return $visibleSelect; 00151 }
| Resource::setCourseID | ( | $ | courseID | ) |
Definition at line 81 of file class.resource.inc.php.
References $courseID.
00081 { 00082 $this->courseID = $courseID; 00083 }
| Resource::setCreateTime | ( | $ | createTime | ) |
Definition at line 55 of file class.resource.inc.php.
References $createTime.
00055 { 00056 $this->createTime = $createTime; 00057 }
| Resource::setDescription | ( | $ | description | ) |
Setter for description
| String | $description Description |
Definition at line 64 of file class.resource.inc.php.
References $description.
00064 { 00065 $this->description = $description ; 00066 }
| Resource::setFileID | ( | $ | fileID | ) |
Definition at line 77 of file class.resource.inc.php.
References $fileID.
00077 { 00078 $this->fileID = $fileID; 00079 }
| Resource::setFileManager | ( | $ | fileManager | ) |
Definition at line 47 of file class.resource.inc.php.
References $fileManager.
00047 { 00048 $this->fileManager = $fileManager; 00049 }
| Resource::setLink | ( | $ | link | ) |
Definition at line 98 of file class.resource.inc.php.
References $link.
00098 { 00099 $this->link = $link; 00100 }
| Resource::setName | ( | $ | name | ) |
Definition at line 106 of file class.resource.inc.php.
References $name.
00106 { 00107 $this->name = $name; 00108 }
| Resource::setUserID | ( | $ | userID | ) |
Definition at line 94 of file class.resource.inc.php.
References $userID.
00094 { 00095 $this->userID = $userID; 00096 }
| Resource::setVisibleType | ( | $ | visibleType | ) |
Definition at line 102 of file class.resource.inc.php.
References $visibleType.
00102 { 00103 $this->visibleType = $visibleType; 00104 }
Resource::$courseID [protected] |
Definition at line 33 of file class.resource.inc.php.
Referenced by File::getHTMLString(), setCourseID(), and Folder::showFiles().
Resource::$createTime [protected] |
Definition at line 38 of file class.resource.inc.php.
Referenced by setCreateTime().
Resource::$description [protected] |
Definition at line 39 of file class.resource.inc.php.
Referenced by setDescription().
Resource::$fileID [protected] |
Definition at line 32 of file class.resource.inc.php.
Referenced by Folder::__construct(), Folder::drawFolder(), File::getCopyFileHTML(), File::getDeleteFileHTML(), Folder::isLastFolder(), and setFileID().
Resource::$fileManager = null [protected] |
Definition at line 41 of file class.resource.inc.php.
Referenced by setFileManager().
Resource::$link [protected] |
Definition at line 35 of file class.resource.inc.php.
Referenced by createLink(), and setLink().
Resource::$name [protected] |
Definition at line 36 of file class.resource.inc.php.
Referenced by setName().
Resource::$userID [protected] |
Definition at line 34 of file class.resource.inc.php.
Referenced by setUserID().
Resource::$visibleType [protected] |
Definition at line 37 of file class.resource.inc.php.
Referenced by setVisibleType().
1.6.1